export function ParseDate (date) {
  if (date === '0001-01-01T00:00:00Z') {
    return ''
  } else {
    let result = new Date(Date.parse(date))
    return result.getFullYear() + '年' + (result.getMonth() + 1) + '月' + result.getDate() + '日'
  }
}

export function ParseChinese (data) {
  if (data === '') {
    return ''
  }
  let year = Number(data.substring(0, data.indexOf('年')))
  let month = Number(data.substring(data.indexOf('年') + 1, data.indexOf('月')))
  let date = Number(data.substring(data.indexOf('月') + 1, data.indexOf('日')))
  return new Date(year, month - 1, date)
}
